
<div id="offer_list">
                	
                	{if $loggedUser && !$queryString}
                	<div class="offer_list_add_offer">
                		<div class="left add_offer_left">
                		I will
                		</div>
                		<div class="left add_offer_right">
                		<p class="instructions">
                			What are you willing to do for 5&euro;?
                		</p>
                		<form action="/account/add-offer">
                			<input type="text" value="" name="offerTitle" class="input" /> for 5&euro; <input type="submit" value="Continue" class="button pointer"/>
                		</form>
                		</div>
                		<div class="clear"></div>
                	</div>
                	{elseif $queryString}
                	
                		<p class="search">Search again</p>
                		<input type="text" value="{$queryString}" id="sBox2" class="search_box" onfocus="$('#sBox2').val('');" />
							<img src="/public/styles/images/lupa-big.gif" border="0" class="pointer search_img" onclick="goSearch('sBox2');"/>
							<br />
							<div class="search_bar">
								<div class="left">
									<b>Search Results</b> for <b>{$queryString}</b>
								</div>
								<div class="right">
									Displaying offer <b>{$offset+1}</b> - <b>{if ($offset+$limit) > $rCount}{$rCount}{else}({$offset+$limit}){/if}</b> of <b>{$rCount}</b> in total
								</div>
								<div class="clear"></div>
							</div>
							<br />
					{else}
					<img src="/public/styles/images/welcome.gif" border="0" />
                	{/if}
                	<div class="filters">
                		Filter offers by <a href="{$filterRecentUrl}" {if $filter == 'recent'}class="selected"{/if}>auto</a>
                			<em class="separator"> </em><a href="{$filterPopularityUrl}" {if $filter == 'popularity'}class="selected"{/if}>popularity</a>
                			<em class="separator"> </em><a href="{$filterRatingUrl}" {if $filter == 'rating'}class="selected"{/if}>rating</a>
                	</div>
                	
                	<div class="offers">
                		{foreach $offers as $o}
                			{include file='block_offer.tpl'}
                		{/foreach}	
                	</div>
                	{$pager}
                	</div>	